<template>
    <span>
        <el-input v-model="sortValue" @change="sortData" style="width:50px;"></el-input>
    </span>
</template>
<script>
  export default {
    props: {
      value: {
        type: [String,Number]
      }
    },
    data(){
        return {
            sortValue:this.value
        }
    },
    methods: {
        async sortData(){
          this.$emit('sortChange',{value:this.sortValue})
        }
    }
  }
</script>